package com.njtoyo.taxi.admin.rest.wrapper.marketing.seckill;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.entity.ActivitySeckillPrize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
@ApiModel("秒杀活动奖品列表")
public class PrizeListWrapper extends Page<ActivitySeckillPrize> {
    public PrizeListWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty("奖品名称")
    private String name;

    private Long activityId;
    private Long activityAwardId;
}
